﻿using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.PlatForm.Dtos.DbLink
{
    public class DbLinkCrInput
    {
        /// <summary>
        /// 数据库名	
        /// </summary>
        [Required(ErrorMessage = "服务名称不能为空")]
        public string serviceName { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>

        [Required(ErrorMessage = "用户不能为空")]
        public string userName { get; set; }
        /// <summary>
        /// 状态(1-可用,0-禁用)
        /// </summary>
        [Required(ErrorMessage = "有效标志不能为空")]
        public int enabledMark { get; set; }
        /// <summary>
        /// 端口
        /// </summary>
        [Required(ErrorMessage = "端口不能为空")]
        public string port { get; set; }
        /// <summary>
        /// 数据库驱动类型
        /// </summary>
        [Required(ErrorMessage = "连接驱动不能为空")]
        public string dbType { get; set; }
        /// <summary>
        /// 连接名称
        /// </summary>
        [Required(ErrorMessage = "连接名称不能为空")]
        public string fullName { get; set; }
        /// <summary>
        /// 主机地址
        /// </summary>
        [Required(ErrorMessage = "主机名称不能为空")]
        public string host { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        public string password { get; set; }
        public long? sortCode { get; set; }
    }
}
